package core.semantic;

import java.util.ArrayList;
import java.util.List;

public class SemanticException extends RuntimeException{

	private List<String> errors;
	
	public SemanticException() {
		super();
		errors = new ArrayList<String>();
	}
	
	void addError(int line, String error){
		errors.add("line " + line + ": " + error);
	}

	public List<String> getErrors() {
		return errors;
	}
}
